1 /*
2 * Angkor Web Framework
3 *
4 * Distributable under LGPL license.
5 * See terms of license at gnu.org.
6 */
7
8 package com.tirsen.angkor;
9
10 /***
11 * Implement this interface if you want to provide views that shows errors to the user.
12 *
13 * <!-- $Id: ErrorViewFactory.java,v 1.2 2002/10/07 19:49:17 tirsen Exp $ -->
14 * <!-- $Author: tirsen $ -->
15 *
16 * @author Jon Tirs´n (tirsen@users.sourceforge.net)
17 * @version $Revision: 1.2 $
18 */
19 public interface ErrorViewFactory extends ViewFactory
20 {
21 /***
22 * Adds an error to be displayed by the view.
23 */
24 void addError(Throwable error);
25
26 /***
27 * Add an error associated with a specific view.
28 * An error is associated with a view if it fails during the call to the {@link View#parse(RenderContext)} method
29 * or if it is the source of an event which fails during event processing.
30 */
31 void addError(Throwable error, View associatedView);
32
33 /***
34 * Gets the errors currently associated with this error-view.
35 */
36 Throwable[] getErrors();
37
38 /***
39 * Resets the errors associated with this error-view to no errors at all.
40 */
41 void resetErrors();
42 }
This page was automatically generated by Maven